package net.hn.hnms.biz.project.vo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("投资费用计划")
public class PlanInvestmentVo extends BaseVO {

    @ApiModelProperty(value = "投资计划ID")
    private String investmentPlanId;

    @ApiModelProperty(value = "投资计划代码")
    private String investmentPlanCode;

    @ApiModelProperty(value = "投资计划名称")
    private String investmentPlanName;

    @ApiModelProperty(value = "投资计划类型")
    private Character investmentPlanType;

    @ApiModelProperty(value = "计划投资额")
    private Double planInvestment;

    @ApiModelProperty(value = "计划开始日期")
//    @JsonFormat(
//            pattern = "yyyy-MM-dd"
//    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String planStartDate;

    @ApiModelProperty(value = "计划结束日期")
//    @JsonFormat(
//            pattern = "yyyy-MM-dd"
//    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String planEndDate;


    @ApiModelProperty(value = "项目ID")
    private String projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;


    @ApiModelProperty(value = "项目总预算金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "项目类型（0采购项目1施工项目）")
    private String projectType;


    @ApiModelProperty(value = "项目日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date projectDate;
}
